
class People:
    name:str

    def say_my_name(self):
        print(self.name)

    def sya_my_title_name(self,title):
        print(title,self.name)




if __name__ == '__main__':
    name = "李四"
    print(name)
    zhang_san = People()
    zhang_san.name = "张三"
    zhang_san.say_my_name()
    zhang_san.sya_my_title_name("学生")

    wang_wu = People()
    wang_wu.name = "王五"
    wang_wu.sya_my_name()
    wang_wu.sya_my_title_name("老师")